package com.ttn.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ttn.common.core.entity.business.CourseUnitOralPractice;
import com.ttn.common.core.entity.studentrecord.OralPracticeStudyRecordDetails;
import com.ttn.common.core.entity.studentrecord.TestStudyRecord;
import com.ttn.common.core.entity.studentrecord.vo.SaveOralPracticeStudyRecordDetailsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OralPracticeStudyRecordDetailsMapper extends BaseMapper<OralPracticeStudyRecordDetails> {

    List<CourseUnitOralPractice> getUnfinishedCourseUnitOralPracticeList(@Param("qo") TestStudyRecord testStudyRecord);

    List<SaveOralPracticeStudyRecordDetailsVO> getTop20(@Param("qo") TestStudyRecord testStudyRecord);

}